<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<title>WebRpc :: Rectangle</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<script src="prototype.js"></script>
		<script src="webrpc.js"></script>
		<script src="index.php?js"></script>
		<script type="text/javascript">//<![CDATA[

Rectangle.prototype.init = function (w, h)
{
	this.w = w;
	this.h = h;
}


var r = new Rectangle (7, 8);
r.area (function (response) {
		alert (response.result);
});


var r1 = new Rectangle (2, 7);
var r2 = new Rectangle (7, 3);
Rectangle.intersect (r1, r2, function (response) {
		var intersect = response.result;
		alert (intersect.w + " x " + intersect.h);
});

//]]>
		</script>
	</head>

	<body>
		
	</body>
</html>

